//
//  ViewController.m
//  MVP3
//
//  Created by 李煜 on 2024/6/21.
//

#import "TestPresenter.h"
#import "ViewController.h"
@interface ViewController ()
// 绑定 Presenter
@property (nonatomic, strong) TestPresenter *presenter;
@end
@implementation ViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor cyanColor];

    // Presenter
    self.presenter = [TestPresenter new];
    self.presenter.controller = self;
    // 入口方法：在 P 中处理原 C 负责的事
    [self.presenter setUP];
}

@end
